# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 958 UrajCrystal (neutral\Uraj.grp)
.headerstart
IsId           	198
Type           	21
Init           	MothershipCannonInit
Death          	MothershipCannonDeath
GndAttkInit    	MothershipCannonGndAttkInit
AirAttkInit    	MothershipCannonGndAttkInit
Unused1        	[NONE]
GndAttkRpt     	MothershipCannonGndAttkRpt
AirAttkRpt     	MothershipCannonGndAttkRpt
CastSpell      	[NONE]
GndAttkToIdle  	MothershipCannonGndAttkToIdle
AirAttkToIdle  	MothershipCannonGndAttkToIdle
Unused2        	[NONE]
Walking        	MothershipCannonWalking
WalkingToIdle  	MothershipCannonWalkingToIdle
SpecialState1  	[NONE]
SpecialState2  	[NONE]
AlmostBuilt    	[NONE]
Built          	[NONE]
Landing        	[NONE]
LiftOff        	[NONE]
IsWorking      	[NONE]
WorkingToIdle  	[NONE]
WarpIn         	MothershipCannonWarpIn
.headerend
# ----------------------------------------------------------------------------- #

MothershipCannonInit:
	tmprmgraphicstart
	wait		1
	playfram	15
	imgul          	418 0 0	# PsiEmitterShadCarried (neutral\npsSha2.grp)
	wait		30
	tmprmgraphicend
	goto		MothershipCannonLocal00

MothershipCannonLocal00:
	playfram	0
	wait		2
	playfram	1
	wait		2
	playfram	2
	wait		2
	playfram	3
	wait		2
	playfram	4
	wait		2
	playfram	5
	wait		2
	playfram	6
	wait		2
	playfram	5
	wait		2
	playfram	4
	wait		2
	playfram	3
	wait		2
	playfram	2
	wait		2
	playfram	1
	wait		2
	goto		MothershipCannonLocal00

MothershipCannonWalkingToIdle:
	playfram	0
	wait		2
	playfram	1
	wait		2
	playfram	2
	wait		2
	playfram	3
	wait		2
	playfram	4
	wait		2
	playfram	5
	wait		2
	playfram	6
	wait		2
	playfram	5
	wait		2
	playfram	4
	wait		2
	playfram	3
	wait		2
	playfram	2
	wait		2
	playfram	1
	wait		2
	goto		MothershipCannonWalkingToIdle

MothershipCannonDeath:
	imgol          	213 -32 0	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	7
	wait           	2
	imgol          	213 26 -16	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	8
	wait           	1
	imgol          	213 0 -98	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	9
	wait           	2
	imgol          	213 68 41	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	10
	wait           	2
	imgol          	213 -32 -58	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	11
	wait           	1
	imgol          	213 77 -41	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	12
	wait           	2
	imgol          	213 -79 13	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	13
	wait           	1
	imgol          	213 16 53	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	playfram	14
	wait           	2
	imgol          	213 40 20	# ProtossBuildingExplosionSmall (thingy\tBangS.grp)
	playsnd        	10	# Misc\Explo1.wav
	wait		1	
	end            	

MothershipCannonGndAttkInit:
	playfram	6
	wait		2
	playfram	7
	wait		2
MothershipCannonGndAttkRpt:
	playfram	0
	wait		2
	randcondjmp	16	MothershipCannonLocal01
MothershipCannonLocal02:
	playfram	1
	playsnd        	89	# Bullet\PSIBOLT.wav
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	wait		2
	playfram	2
	wait		2
	playfram	3
	wait		2
	playfram	4
	wait		2
	playfram	5
	playsnd        	89	# Bullet\PSIBOLT.wav
	turncwise	4
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	4
	wait		2
	playfram	6
	wait		2
	playfram	7
	wait		2
	playfram	6
	wait		2
	playfram	5
	playsnd        	89	# Bullet\PSIBOLT.wav
	turncwise	2
	attackwith	1
	turncwise	38
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	wait		2
	playfram	4
	wait		2
	playfram	3
	wait		2
	playfram	2
	wait		2
	playfram	1
	playsnd        	89	# Bullet\PSIBOLT.wav
	turncwise	6
	attackwith	1
	turncwise	34
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	attackwith	1
	turncwise	8
	wait		1
	gotorepeatattk
MothershipCannonGndAttkToIdle:
	wait		1
	goto           	MothershipCannonWalkingToIdle

MothershipCannonLocal01:
	nobrkcodestart
	wait		8	
	playsnd        	179	# Terran\BATTLE\tBaYam02.wav
	attackwith	2
	wait		8
	nobrkcodeend
	goto		MothershipCannonLocal02

MothershipCannonWarpIn:
	imgul          	418 0 0	# PsiEmitterShadCarried (neutral\npsSha2.grp)
	wait		40
	wait		30
	goto		MothershipCannonLocal00

MothershipCannonWalking:
	move		2
	wait		1
	move		2
	wait		1
	playfram	0
	move		2
	wait		1
	move		2
	wait		1
	playfram	1
	move		2
	wait		1
	move		2
	wait		1
	playfram	2
	move		2
	wait		1
	move		2
	wait		1
	playfram	3
	move		2
	wait		1
	move		2
	wait		1
	playfram	4
	move		2
	wait		1
	move		2
	wait		1
	playfram	5
	move		2
	wait		1
	move		2
	wait		1
	playfram	6
	move		2
	wait		1
	move		2
	wait		1
	playfram	5
	move		2
	wait		1
	move		2
	wait		1
	playfram	4
	move		2
	wait		1
	move		2
	wait		1
	playfram	3
	move		2
	wait		1
	move		2
	wait		1
	playfram	2
	move		2
	wait		1
	move		2
	wait		1
	playfram	1
	move		2
	wait		1
	move		2
	wait		1
	goto           	MothershipCannonWalking